package com.zqr.staticclass;

/**
 * @author zqr
 * @since 2022/11/4
 */
// 测试一下静态内部类是不是懒加载
public class StaticClassTest {
    private int a = 0;

    @Override
    public String toString() {
        return "StaticClassTest{" +
                "a=" + a +
                '}';
    }

    public static void main(String[] args) {
        StaticClassTest staticClassTest = new StaticClassTest();
        System.out.println(staticClassTest);
        System.out.println(StaticClassTest.InnerClass.b);
    }

    public static class InnerClass{
        private static int b = 66;
    }
}
